USE [AstroDAbis]
GO

/****** Object:  Table [dbo].[results]    Script Date: 08/31/2011 15:20:47 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[results](
	[query] [varchar](255) NOT NULL,
	[row] [numeric](19, 0) NULL,
	[oid] [varchar](255) NULL,
	[ident] [numeric](19, 0) IDENTITY(1,1) NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[ident] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[results]  WITH CHECK ADD  CONSTRAINT [FK416B3BF699F19B87] FOREIGN KEY([query])
REFERENCES [dbo].[queries] ([ident])
GO

ALTER TABLE [dbo].[results] CHECK CONSTRAINT [FK416B3BF699F19B87]
GO


